package com.cbts.dao;

import java.util.List;

import com.cbts.entity.ExchangeRecord;

public interface ExchangeRecordDao extends BaseDao<ExchangeRecord>{

	/**
	 * 通过参数查询
	 * @param wherehql
	 * @param values
	 * @param firstResult
	 * @param maxResult
	 * @return List<ExchangeRecord>
	 */
	public List<ExchangeRecord> getExchangeRecordByValues(String wherehql, Object[] values,
			int firstResult, int maxResult);
	/**
	 * 根据员工号获取员工的兑换记录
	 * @param userid 员工号
	 *  @return List<ExchangeRecord> 员工的兑换记录
	 */
	public List<ExchangeRecord> getExchangeRecordByUserid(String userid);
}
